package com.zmn.oms.admin.controller.conf.reply.answer;

import com.zmn.mcc.cas.model.LoginStaff;
import com.zmn.mcc.cas.web.StaffAdminService;
import com.zmn.oms.services.interfaces.conf.reply.ReplyAnswerService;

import javax.annotation.Resource;
import java.util.Objects;

/**
 * 类描述：回访答案
 *
 * @author liuying
 * @date 2022/03/09 18:27
 */
public class ReplyAnswerBaseController {
    @Resource
    protected ReplyAnswerService replyAnswerService;

    /**
     * 获取登录用户名
     *
     * @param
     * @return
     */
    public String getMcStaffRealName() {
        LoginStaff staff = StaffAdminService.currentStaff();
        if (Objects.nonNull(staff)) {
            return staff.getRealName();
        } else {
            return "";
        }
    }
}
